#!/bin/sh
# Copyright 2008 Cian Synnott.
# $Id: build-libraries.sh 19 2009-11-27 20:46:48Z cian $

if [ ! -f iksemel-*.tar.gz ] ; then
  echo "Please fetch a copy of iksemel's source tarball to this dir."
  exit 1
fi

mkdir build

tar -xzvf iksemel-*.tar.gz

(cd iksemel-* && patch -p1 < ../patch.iksemel-nonblocking && autoconf && \
 LIBGNUTLS_CONFIG='/usr/bin/pkg-config gnutls' ./configure --prefix=$(pwd)/../build \
 && make install)

touch .built-libraries
